package day01;

import java.sql.SQLOutput;

/**
 * 僵尸类
 * @author  dff
 * @date 2025 5 20 16:40
 */
public class ZomBie {
    int x;
    int y;
    int width;
    int height;

    ZomBie(){
        this.x = 1200;
        this.y = 230;
        this.width = 180;
        this.height = 180;
    }
    public ZomBie(int x, int y, int width, int height) {
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    @Override
    public String toString() {
        return "ZomBie{" +
                "x=" + x +
                ", y=" + y +
                ", width=" + width +
                ", height=" + height +
                '}';
    }

    public static void main(String[] args) {
        ZomBie z = new ZomBie();
        System.out.println(z);
    }
}
